﻿using Data.Interfaces;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;

namespace Data.DBModels
{
    public class User : IEntityBase
    {
        [Required]
        public Guid Id { get; set; }
        
        [Required]
        public DateTime CreatedOn { get; set; }
        public DateTime? ModifiedOn { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }

        public string PasswordSalt { get; set; }
        public string ValidationKey { get; set; }
        public virtual ICollection<Category> Categories { get; set; }

        public bool IsAdmin { get; set; }

    }
}
